﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication1
{
    public class ManageRequestManager
    {
        public static DepartmentRequisition generateDepFirstID()
        {
            DepartmentRequisition d = new DepartmentRequisition();
            d = ManageRequestPersistence.generateDepFirstID();
            return d;
        }
        public static DepartmentRequisition generateDepID(string strADI)
        {
            DepartmentRequisition d = new DepartmentRequisition();
            d = ManageRequestPersistence.generateDepID(strADI);
            return d;
        }
        public static DepartmentRequisitionDetail generateDepDetailFirstID()
        {
            DepartmentRequisitionDetail d = new DepartmentRequisitionDetail();
            d = ManageRequestPersistence.generateDepDetailFirstID();
            return d;
        }
        public static DepartmentRequisitionDetail generateDepDetailID(string strADI)
        {
            DepartmentRequisitionDetail d = new DepartmentRequisitionDetail();
            d = ManageRequestPersistence.generateDepDetailID(strADI);
            return d;
        }
        public static IQueryable getEmployeeRequisitionList()
        {
            var empReqList = ManageRequestPersistence.getEmployeeRequisitionList();
            return empReqList;
        }
        public static int getNoOfRequest()
        {
            int count = ManageRequestPersistence.getNoOfRequest();
            return count;
        }
        public static EmployeeRequisition selectedEmpRequisition(string empReqID)
        {
            EmployeeRequisition selected = ManageRequestPersistence.selectedEmpRequisition(empReqID);
            return selected;
        }
        public static void saveToDepartmentRequisitionNDetail(EmployeeRequisition select)
        {
            ManageRequestPersistence.saveToDepartmentRequisitionNDetail(select);
        }

    }
}